#ifndef FILE_H_INCLUDED
#define FILE_H_INCLUDED
#define SIZE 50

struct node
{
    int count;
    char word[SIZE];
    struct node *next;
};

typedef struct node Tnode;

struct list
{
    Tnode *first;
    Tnode *last;
};

typedef struct list LIST;

int iterate_n_test(LIST *, char *, int);
void insert_to_tail(char *, int, LIST *L);
void iterate_n_sort(LIST *);
void iterate_n_print(LIST *);


#endif // FILE_H_INCLUDED

